
public class counter {
	
	int receiveProbe = 0;
	int sendProbe = 0;
	
	public counter(){}
	
	public double getLostRate(){
		int lostProbe = sendProbe - receiveProbe;
		double send = sendProbe * 1.0;
		double lost = lostProbe * 1.0;
		double lostRate = lost/send;
		return ((double)Math.round(lostRate*100))/100;
	}
}
